<table class="table table-bordered table-hover table-striped">
	<tbody>
		<tr align="center">
			<td width="10%"><strong>合同编号</strong></td>
			<td width="7%"><strong>房间号</strong></td>
			<td width="10%"><strong>姓名</strong></td>
			<td width="10%"><strong>开始日期</strong></td>
			<td width="10%"><strong>结束日期</strong></td>
			<td width="10%"><strong>月数</strong></td>
			<td width="10%"><strong>房租</strong></td>
			<td width="10%"><strong>物业费</strong></td>
			<td width="10%"><strong>合计</strong></td>
			<td width="10%"><strong>状态</strong></td>
		</tr>
		<?php if(is_array($ls) && count($ls)){ ?>
			<?php if($state){ ?>
			<tr align="center">
				<td>{$ls['contract']}</td>
				<td>{$ls['room_number']}</td>
				<td>{$ls['member_nick']}</td>
				<td><?php echo date('Y-m-d H:i', $btime);?></td>
				<td><?php echo date('Y-m-d H:i', $etime);?></td>
				<td>{$month}</td>
				<td>{$ls['rent']}</td>
				<td>{$ls['property']}</td>
				<td><?php echo sprintf('%.2f', $ls['rent'] + $ls['property']); ?></td>
				<td id="success">未支付</td>
			</tr>
			<?php }else{ ?>
			<tr align="center">
				<?php if(!$count){ ?>
				<td colspan="14">续费时间段错误，房间租期为：<?php echo date('Y-m-d', $ls['checkin_time']);?>～<?php echo date('Y-m-d', $ls['leaving_time']);?>, 请重新选择续费时间。</td>
				<?php }else{ ?>
				<td colspan="14">该时间段已缴费, 请重新选择开始时间。</td>
				<?php } ?>
			</tr>
			<?php } ?>
		<?php }else{ ?>
		<tr align="center">
			<td colspan="14">暂无数据...</td>
		</tr>
		<?php } ?>
	</tbody>
</table>